﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Medianamik.Core.Action;

namespace Medianamik.UI.ConfigManagement
{
    public partial class ActionHandlerList : BasePage 
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BindList();
            }
        }

        private void BindList()
        {
            var datasource = from ia in ActionManager.Instance.ActionHandlers
                             select new { DisplayName = ia.Key , Description = ia.Value };
            GridActionHandlers.DataSource = datasource;
            GridActionHandlers.DataBind();
        }
    }
}
